package com.crawleService.dubbo.exposureInterface;

import com.alibaba.dubbo.config.annotation.Service;
import com.crawleService.shanxitobaccoWebsite.service.MerchantRetailInteractionService;
import com.crawleService.shanxitobaccoWebsite.service.OrderShanxiTobaccoCrawlerService;
import com.crawleService.shanxitobaccoWebsite.service.SmokeInfoShanxiTobaccoCrawlerService;
import com.dubboInterface.merchant.crawleServiceInterface.shanxiInterface.ShanxiBaseClick;
import com.projectCommon.bean.httpSmokeBean.shanxitobaccobean.ThreePublishRes;
import com.projectCommon.bean.httpSmokeBean.shanxitobaccobean.response.OrderInfo;
import com.projectCommon.bean.httpSmokeBean.shanxitobaccobean.response.OrderingInformation;
import com.projectCommon.bean.httpSmokeBean.shanxitobaccobean.response.SmokeResult;
import com.projectCommon.util.springUtil.annotation.LogInitContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @date 2024/11/30/11:38
 * @target 心若有所向往，何惧道阻且长
 */
@Component
@Service
@Slf4j
@LogInitContext
public class ShanxiTobaccoBaseInterface implements ShanxiBaseClick {
    @Autowired
    private MerchantRetailInteractionService merchantRetailInteractionService;
    @Autowired
    private OrderShanxiTobaccoCrawlerService orderShanxiTobaccoCrawlerService;
    @Autowired
    private SmokeInfoShanxiTobaccoCrawlerService smokeInfoShanxiTobaccoCrawlerService;

    @Override
    public ThreePublishRes threeOpenness_more() {
        ThreePublishRes threePublishRes = merchantRetailInteractionService.threeOpenness_more();
        return threePublishRes;
    }

    @Override
    public void viewPublicInformation() {
        merchantRetailInteractionService.viewPublicInformation();

    }

    @Override
    public byte[] downPublicInformation(String supplementaryWebsite) {
        return merchantRetailInteractionService.downPublicInformation(supplementaryWebsite);
    }

    @Override
    public OrderInfo selectOrderListByDate(String startTime, String endTime) {
        return orderShanxiTobaccoCrawlerService.selectOrderListByDate(startTime, endTime);
    }

    @Override
    public byte[] selectOrderDetailCSVFileByOrderId(String order_uuid) {
        return orderShanxiTobaccoCrawlerService.selectOrderDetailCSVFileByOrderId(order_uuid);
    }

    @Override
    public void fillBarCode() {
        orderShanxiTobaccoCrawlerService.fillBarCode();
    }

    @Override
    public SmokeResult selectSmokeInfoByPage(Integer page, Integer rows) {
        return smokeInfoShanxiTobaccoCrawlerService.selectSmokeInfoByPage(page, rows);
    }

    @Override
    public SmokeResult selectAllSmokeInfo() {
        return smokeInfoShanxiTobaccoCrawlerService.selectAllSmokeInfo();
    }

    @Override
    public OrderingInformation selectAvailableAmount() {
        return smokeInfoShanxiTobaccoCrawlerService.selectAvailableAmount();
    }

    @Override
    public byte[] downHttpPic(String fileid) {

        return new byte[0];
    }
}
